package com.example.demonstrate.wang.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author along
 * @Date 2024/6/20 0:52
 */

@Component
@ConfigurationProperties(prefix = "thread.pool")
@Data
public class ThreadPoolProperties {

    private int corePoolSize;

    private int maximumPoolSize;

    private int keepAliveTime;

    private int workQueueSize;

    private String threadNamePrefix;

}
